package cate.game.train.rune.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;

@ClientMsg(title = "获取徽章合成奖励 の 请求")
@OperationSetter(GDOperation.RUNE_REWARD)
public class RuneRewardReq implements MsgInput {
    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.rune.getReward(cc.getRole());
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.RUNE_GET_REWARD_REQ;
    }
}
